package com.kk.quyan.service;

import com.kk.quyan.entity.MaterialLabelRel;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kk.quyan.entity.request.RelRequest;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 * 素材标签关系表 服务类
 * </p>
 *
 * @author kk
 * @since 2020-11-21
 */
public interface MaterialLabelRelService extends IService<MaterialLabelRel> {

    /**
     * 插入素材并对应标签插入关系
     * @param relRequest
     * @return
     */
    @Transactional
    boolean saveMaterialRel(RelRequest relRequest);

    /**
     * 插入关系
     * @param mId
     * @param lId
     */
    @Transactional
    void saveRel(int mId, int lId);
}
